package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.DiscountPolicyDao;
import com.ericom.model.DiscountPolicy;
import com.ericom.service.DiscountPolicyManager;

@Service("discountPolicyManager")
public class DiscountPolicyManagerImpl extends
		GenericManagerImpl<DiscountPolicy, Long> implements
		DiscountPolicyManager {

	DiscountPolicyDao discountPolicyDao;

	@Autowired
	public DiscountPolicyManagerImpl(DiscountPolicyDao discountPolicyDao) {
		super(discountPolicyDao);
		this.discountPolicyDao = discountPolicyDao;

	}

	@Override
	public List<DiscountPolicy> findByTitle(String title) {

		return discountPolicyDao.findByTitle(title);
	}

}
